package com.common.sdk.net.connect.interfaces;

import com.common.sdk.net.connect.http.NetworkResponseEx;

import okhttp3.Response;

/**
 * Created by chengjiangsang116630 on 2018/1/18.
 */

public interface IResultParser {

    /**
     * 解析服务器返回数据
     *
     * @param response 服务器响应
     * @param responseBody 响应字符串
     * @return T 解析response后得到的数据类型
     * @throws Exception 解析时的异常
     */
    public Object parse(Response response, String responseBody) throws Exception;

}
